package org.jeecg.modules.sggg.mapper;

import java.util.List;
import java.util.Map;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.jeecg.modules.sggg.entity.SgDeviceRelevance;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

/**
 * @Description: 设备关联表
 * @Author: jeecg-boot
 * @Date: 2023-03-19
 * @Version: V1.0
 */
public interface SgDeviceRelevanceMapper extends BaseMapper<SgDeviceRelevance> {

    IPage<SgDeviceRelevance> getDoctorAuthority(IPage<SgDeviceRelevance> page, String userId, String sysOrgCode, String roleCode, String serial_number, String memberName, String type, List<String> responsibleAgencies, String selectOrgCode);

    List<SgDeviceRelevance> queryPageListBySql(Page<SgDeviceRelevance> page, SgDeviceRelevance dto);

    List<SgDeviceRelevance> provideDeviceCount(String type, String userId, List<String> responsibleAgencies, String sysOrgCode);
}
